﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using saigonbook.Dal;

namespace saigonbook.Biz
{
    public class BIZ_chitietphieunhap
    {
        public BIZ_phieunhap phieunhap;
        public BIZ_sach sach;
        public int gia;
        public int soluong;

        public BIZ_phieunhap Phieunhap
        {
            get { return phieunhap; }
            set { phieunhap = value; }
        }
        public BIZ_sach Sach
        {
            get { return sach; }
            set { sach = value; }
        }

        public string Tensach
        {
            get { return Sach == null ? String.Empty : Sach.Tensach; }
        }

        public int Gia
        {
            get { return gia; }
            set { gia = value; }
        }
        public int Soluong
        {
            get { return soluong; }
            set { soluong = value; }
        }
        public BIZ_chitietphieunhap()
        { }
        public BIZ_chitietphieunhap(BIZ_phieunhap phieunhap, BIZ_sach sach, int gia, int soluong)
        {
            this.phieunhap = phieunhap;
            this.sach = sach;
            this.gia = gia;
            this.soluong = soluong;
        }
    }
}
